package com.sunnada.wfs.dao;

import lombok.extern.java.Log;
import org.apache.ibatis.jdbc.SQL;
import org.springframework.beans.factory.annotation.Value;

@Log
public class GeometryColumnsSQL {
    private String table = "geometry_columns";

    private String scheam = "public";

    public String getGeoTable(){
        String sql = new SQL(){{
            SELECT("f_table_name");
            FROM("geometry_columns");
            WHERE("f_table_schema = '"+scheam+"'");
        }}.toString();
        log.info(sql);
        return sql;
    }
}
